<include file="Public:header" />
<div id="zoneHeader">
    <h2>公告管理</h2>
    <ul>
        <li><a href="?c=News&a=add" class="btn">发布公告</a></li>
    </ul>
</div><!--/#zoneHeader-->
<div id="zoneBody">
    <div id="zoneBodySearch">
        <form id="formSearch" action="?c={$Think.const.CONTROLLER_NAME}">
            <input type="hidden" name="sort" />
            <input type="hidden" name="sortdir" />

            <ul>
                <li><b>作者：</b><input type="text" name="author" class="fW100p" /></li>
                <li><b>发布日期：</b><input type="text" name="create_date" class="fW100p" t="datebox"></li>
                <li>
                    <select name="is_top">
                        <option value="">是否置顶</option>
                        <option value="1">置顶</option>
                        <option value="0">普通</option>
                    </select>
                </li>
                <li rel="searchMoreItem"><b>标题：</b><input type="text" name="subject" class="fW200p" /></li>
                <li rel="searchMoreItem"><b>内容：</b><input type="text" name="text" class="fW200p" /></li>
                <li><button type="button" id="as" class="btnSearch">查询</button></li>
                <li><button type="button" class="btnResetForm">清空表单</button></li>
                <li><label><input type="checkbox" class="btnSearchMore" /><span>高级查询</span></label></li>
            </ul>
        </form>
    </div><!--/#zoneBodySearch-->
    <div id="zoneBodyContent">
        <table class="table2">
            <thead>
                <tr>
                    <th width="80">编号</th>
                    <th>标题</th>
                    <th>内容</th>
                    <th width="150">发布时间</th>
                    <th width="150">作者</th>
                    <th width="200">操作</th>
                </tr>
            </thead>
            <tbody>
                <volist name="page.record" id="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td><a href="?c=News&a=detail&id={$vo.id}"><notempty name="vo.is_top"><span style="margin-right:10px;">[ 顶 ]</span></notempty>{:mSubstr($vo['subject'], 0, 10)}</a></td>
                    <td>{:mSubstr($vo['text'], 0, 30)}</td>
                    <td>{$vo.create_time}</td>
                    <td>{$vo.author}</td>
                    <td class="tAction">
                        <a href="?c=News&a=detail&id={$vo.id}">详</a>
                        <flag:isadmin>
                        <a href="?c=News&a=modify&id={$vo.id}">编</a>
                        <a href="?c=News&a=del&id={$vo.id}" t="firm" m="确认要删除此公告吗？">删</a>
                        </flag:isadmin>
                    </td>
                </tr>
                </volist>
            </tbody>
        </table>
    </div><!--/#zoneBodyContent-->
</div><!--/#zoneBody-->
<div id="zoneFooter">{:W('Page/info', [$page])}</div><!--/#zoneFooter-->
<include file="Public:footer" />
